// 主题
import { defineStore } from 'pinia';

export const useThemeStore = defineStore('theme', {
  state: () => ({
    isRedTheme: true, // 初始状态为红色主题
  }),
  actions: {
    setTheme(newValue) {
      this.isRedTheme = newValue;
    },
  },
  // 启用持久化
  persist: true
});
